<?php get_header(); ?>
<div id="content-container">

<div class="content">
	<?php include (TEMPLATEPATH . '/ads.php'); ?>
	<?php query_posts($query_string . "&cat=-111");?>
	<?php if (have_posts()) : while (have_posts()) : the_post(); ?>

	<div class="post">
		<div class="title">
		<h1><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a></h1>
		<div class="info">
			<span class="day"><?php the_time('d'); ?></span>
			<span class="month"><?php the_time('M'); ?></span>
			<span class="folder"><?php the_category(', ') ?> </span>
			<span class="comment"><a href="<?php the_permalink() ?>#comments"> <?php comments_number('No comment','1 comment','% comments'); ?></a> </span>
		</div>
	</div>
	
	<div class="entry">
		<?php the_content('&raquo; Read the rest of the entry.. ') ?>
		<?php trackback_rdf(); ?></div>
	</div>
	<?php endwhile; ?>
		<?php else: ?>
		<?php include (TEMPLATEPATH . '/notfound.php'); ?>		
		<?php endif; ?>
		
		<?php if (function_exists('wp_pagenavi') && is_home() ) : ?>
		<?php wp_pagenavi(); ?>
		<?php else : ?>
		<div class="floatleft"><?php next_posts_link('<span class="prev"> PREVIOUS</span>') ?></div>
		<div class="floatright"><?php previous_posts_link('<span class="next">NEXT </span>') ?></div>
		<?php endif; ?>

</div>

<div id="sidebarwrap">
	<?php include (TEMPLATEPATH . '/top_sidebar.php'); ?>
		<?php include (TEMPLATEPATH . '/sidebar3.php'); ?>

	<?php get_sidebar(); ?>
	<?php include (TEMPLATEPATH . '/sidebar2.php'); ?>
</div>

<div class="clear"></div>
</div>
<?php get_footer(); ?>